ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / ListBox<T> Class / SelectedItem Property






In This Topic
    SelectedItem Property (ListBox<T>)
    In This Topic
    Gets or sets the item that is currently selected in the list.
    Syntax
    'Declaration
     
    
    Public Property SelectedItem As T
    'Usage
     
    
    Dim instance As ListBox(Of T)
    Dim value As T
     
    instance.SelectedItem = value
     
    value = instance.SelectedItem
    public T SelectedItem {get; set;}
    public read-write property SelectedItem: T; 
    public function get,set SelectedItem : T
    public: __property T* get_SelectedItem();
    public: __property void set_SelectedItem( 
       T* value
    );
    public:
    property T^ SelectedItem {
       T^ get();
       void set (    T^ value);
    }
    See Also